<template>
  <div id="app">
    <keep-alive class="show">
      <!--        <NavBar></NavBar>-->
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view class="show" v-if="!$route.meta.keepAlive"></router-view>
  </div>

</template>

<style lang="less">
  @import url('~path_style/resize.css');
  @import 'vant/lib/index.less';
  html,body{
    height: 100%;
    margin: 0;
  }
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  background-color: #fbfbfb;
}

nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
